clear all;
close all;
clc;

z = -5 : 0.01 : 5;

y1 = logistic(z);
figure;
plot(z, y1, 'LineWidth', 2);
xlabel('x');
ylabel('f(x)');

y2 = tanh(z);
figure;
plot(z, y2, 'LineWidth', 2);
xlabel('x');
ylabel('tanh(x)');